package de.koller.reason.gameGui;

import de.koller.reason.gameGui.visual.BasicVisual;
import de.koller.oceanFramework.tree.Child;
import de.koller.reason.RSea;
import de.koller.reason.ReasonStart;
import de.koller.reason.gameGui.grid.GameGrid;
import de.koller.reason.gui.component.button.RButton;
import de.koller.reason.gameGui.listener.FullScreenListener;
import de.koller.reason.gameGui.raid.RaidInterface;
import de.koller.reason.gameGui.visual.Layer;

public class GameGUI extends RSea {
	
	//@Child private final RaidInterface raidInterface = new RaidInterface();
	@Child private final GameGrid gamegrid = new GameGrid();
	
	@Override
	protected void init() {
		super.init();
		
		createFullscreenButton();
	}

	private void createFullscreenButton() {
		RButton b = new RButton( BasicVisual.FullscreenButton.part );
		b.setColorGlow( 0xff516eff );
		b.addTo( rroot.guiRoot, rroot.guiRoot.basicRenderObjs );
		b.setPos( ReasonStart.WIDTH - 16, 0 );
		b.addButtonListener( new FullScreenListener( b ) );
		b.setLayerZ( Layer.GUI_lowest.layerZ );
	}
	
}
